package com.ks.service;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ks.base.BaseService;
import com.ks.dao.UserRoleDao;

@Service("userRoleService")
public class UserRoleService<T> extends BaseService<T> {
    private final static Logger log = Logger.getLogger(UserRoleService.class);

    @Autowired
    private UserRoleDao<T> dao;

    public UserRoleDao<T> getDao() {
        return dao;
    }

    public T queryByUserId(Object o) {
        return dao.queryByUserId(o);
    }

    public void deleteByUserId(Object o) {
        dao.deleteByUserId(o);
    }

}
